/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.fiap.controler;

import br.com.fiap.model.DadosSAC;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author rm64596
 */

@WebServlet(urlPatterns="/processarPesquisaReclamacao")
public class ProcessarReclamacoes extends HttpServlet{
    
    
    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        
        String dtInicial = req.getParameter("dtInicial");
        
        String dtFinal = req.getParameter("dtFinal");
        
        //JPA e formular uma query == select
        //CONTROLER OBTEVE O MODELO
        
        // Controler obteve o modelo
        DadosSAC reclamacoes = new DadosSAC();
        
        req.setAttribute("modelo", reclamacoes);
        
        req.getRequestDispatcher("/RelatorioReclamacao").forward(req, resp);
        
     
    }
    
   
    
    
    
}
